/*
 * PrevAction.java
 *
 * Created on June 22, 2005, 7:37 PM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */
package com.bff.slimserver.musicjukebox.lib.actions;

import com.bff.slimserver.musicjukebox.lib.JukeboxProperties;
import com.bff.bjj.utils.BrowserLauncher;
import com.bff.slimserver.utils.Resources;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;

/**
 *
 * @author Bill
 */
public class SlimHomeAction extends AbstractAction {

    /** Creates a new instance of StopAction */
    public SlimHomeAction() {
        putValue(Action.NAME, Resources.getMessage(Resources.LABEL_KEY.ACTION_SQUEEZE_HOME_NAME));
        putValue(Action.SHORT_DESCRIPTION, Resources.getMessage(Resources.LABEL_KEY.ACTION_SQUEEZE_HOME_SHORT_DESC));
        putValue(Action.SMALL_ICON, Resources.getIcon(Resources.ICON_KEY.ACTION_SQUEEZE_HOME));
    }

    @Override
    public void actionPerformed(ActionEvent evt) {
        BrowserLauncher.openURL(JukeboxProperties.getInstance().getHomeUrl());
    }
}
